package pro190525;

public class practice5 {
    public static void main(String[] args) {
        int[] a = new int [20];

        int max = -2147483648, min = 2147483647;

        for(int i=0; i < a.length;i++)
            a[i] = (int)(Math.random() * 100 + 1);

        for(int i = 0; i < 10; i++){
            if(a[i] > max)
                max = a[i];
            if(a[i] < min)
                min = a[i];
        }

        System.out.println(max+"\n"+min);
    }
}
